@extends('layout.main')

@section('content')
    <div class="col-sm-8 blog-main">
        <form action="/posts" method="POST">
            {{ csrf_field() }}
            <div class="form-group">
                <label for="title">标题</label>
                <input name="title" required type="text" class="form-control" placeholder="这里是标题">
            </div>
            <div class="form-group">
                <label for="content">内容</label>
                <textarea name="content" required id="content" style="height:400px;max-height:500px;"  class="form-control">这里是内容</textarea>
            </div>
            @include('layout.error')
            <button type="submit" class="btn btn-default">提交</button>
        </form>
        <br>
    </div><!-- /.blog-main -->
@endsection